<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:77:"/www/wwwroot/api.bjxlxd.com/public/../application/admin/view/login/index.html";i:1597127925;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>后台管理</title>
	
	<!-- ================= Favicon ================== -->
    <!-- Standard -->

    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon--> 
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon--> 
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">
	
	<!-- Styles -->
    <link href="/static/admin/other/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/themify-icons.css" rel="stylesheet">
    <link href="/static/admin/css/lib/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/lib/nixon.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
</head>

<body class="bg-primary">

	<div class="Nixon-login">
		<div class="container">
			<div class="row">
				<div class="col-lg-6">
					<div class="login-content">
						<div class="login-logo">
							<a href="index.html"><span>后台管理系统</span></a>
						</div>
						<div class="login-form">
							<h4>管理员登录</h4>
							<div class="form-group">
								<label>账号：</label>
								<input type="text" class="form-control" id="adminname" placeholder="账号">
							</div>
							<div class="form-group">
								<label>密码</label>
								<input type="password" class="form-control" id="adminpwd" placeholder="密码">
							</div>
							<button type="button" onclick="sub();" class="btn btn-primary btn-flat m-b-30 m-t-30">登陆</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="/static/admin/js/lib/jquery.min.js"></script>
	<script src="/static/admin/layer/layer.js"></script>
	<script>

        function sub(){
            var adminname = $('#adminname').val();
            var adminpwd = $('#adminpwd').val();

            if(adminname =='' || adminpwd == ''){
                layer.msg("参数不完整");
                return false;
            }

            if(adminname.indexOf("select")>-1){
                layer.msg("有敏感字符");
                return false;
            }

            $.ajax({
                type: 'POST',
                url: '/admin/Login',
                data:{
                    type:0,
                    adminname:adminname,
                    adminpwd:adminpwd
                },
                dataType: 'json',
                success: function(data){
                    layer.msg(data.msg);
                    if(data.code == 1){
                        window.location.href="<?php echo url('/admin/Index'); ?>";
					}
                },
            });
        }
	</script>
</body>

</html>